# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plank-player
pkgver=0_git20210924
pkgrel=2
_commit="bb708a8ff3cd75267a8854c44511425ba14ef552"
pkgdesc="Multimedia Player for playing local files on Plasma Bigscreen"
url="https://invent.kde.org/plasma-bigscreen/plank-player"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
license="GPL-2.0-or-later"
depends="
	kirigami2
	qt5-qtgraphicaleffects
	qt5-qtmultimedia
	"
makedepends="
	extra-cmake-modules
	kirigami2-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtmultimedia-dev
	qt5-qtquickcontrols2-dev
	samurai
	"
source="https://invent.kde.org/plasma-bigscreen/plank-player/-/archive/$_commit/plank-player-$_commit.tar.gz
	new-ecm.patch
	"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
54eb8773f914999ef19c40f24f0b76b5e60f5bdbb32f968246f97212206ad274da5b5217bd7a460a22c64d1220000a6941a7fd3b1c94a3991fca7bc24a6b0ee0  plank-player-bb708a8ff3cd75267a8854c44511425ba14ef552.tar.gz
d2f026507cff5d8e5547d7011a7111bc2839d49500987394bb08f97ca59872832a599fd471e1fcd828e37df7826b12ae32dccf7e6055916c20373fd285e92b01  new-ecm.patch
"
